#!/usr/bin/env python

#graficos
import sys,os
try:
    import pygtk
    pygtk.require("2.0")
except:
    pass
try:
    import gtk
    import gtk.glade
except:
    print "necesita gtk.glade"    
    sys.exit(1)


try:
    import netifaces
except:
    print "necesita netifaces, intenta easy_install netifaces"
    sys.exit(1)


gladefile = "airgui/aircrack-gui.glade"
wTree = gtk.glade.XML(gladefile)         
#Get the Main Window, and connect the "destroy" event
window = wTree.get_widget("MainWindow")
if (window):
    window.connect("destroy", gtk.main_quit)
    window.show()
    gtk.main()